//
//  GXJViewController.h
//  Singapore_powerbank
//
//  Created by 麦鱼科技 on 2017/7/20.
//  Copyright © 2017年 麦鱼科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefresh.h"



@interface GXJViewController : UIViewController

@property(nonatomic, strong) UIView *titleView;

@property(nonatomic, strong) UILabel *titleLab;

@property (nonatomic, strong) UIView *titleLine;

@property (nonatomic, strong) UIButton *backBtn;
//展示背景图
- (void)showBackImage;

- (void)initWhiteBarWithTitle:(NSString *)title isBack:(BOOL)isBack;

- (void)initBlueBarWithTitle:(NSString *)title isBack:(BOOL)isBack;

- (UIButton *)addLeftButtonWithIcon:(UIImage *)iconImg action:(SEL)action;

- (UIButton *)addRightButtonWithIcon:(UIImage *)iconImg action:(SEL)action;

@property(nonatomic, strong) UITableView *tableView;

- (void)createUI;

- (void)handleBackAction;

#pragma mark - 刷新
- (MJRefreshStateHeader *)addRefreshActionForView:(UIScrollView *)aView;
- (MJRefreshFooter *)addLoadMoreActionForView:(UIScrollView *)aView;

- (void)handleListRefreshAction;
- (void)handleListLoadMoreAction;
- (void)handleEndRefreshForView:(UIScrollView *)aView;
- (void)handleEndRefreshForViewWithNoMoreData:(UIScrollView *)aView;

//检查登录状态
- (BOOL)checkLogionState;
- (void)presentLoginView;

@end
